True this frame if the named action is released (the frame it went up) (see btn_released for the raw-button equivalent). The action is one of the names in your project’s Project Settings, written as a plain word: `action_released(jump)`.
action_released(a) -> bool| Name | Type |
|---|---|
a | action |
bool
True only on the frame the named action comes back up - the same check as btn_released, but for a name your project chose (fire, jump) instead of a fixed button. Use it for "let go to do it", like a charged shot.
An action can have more than one button. It counts as released on any frame one of its buttons comes up, not only when the last one does.
if (action_released(fire)) {
var shot_fired = true;
}True for one frame, the moment the player lets go of fire.
The action is whatever buttons Project Settings gave it, and the engine keeps that mapping - so action_rebind() changes what it means for the rest of the run, and no code that asks about the action needs to change. An action with several buttons counts as released when ANY of them is; an action with no buttons is never true.